﻿using System;

namespace ns_User
{
    public class c_User
    {
        public  c_User(){ }

        public c_User(//这个函数好久没有更新，别用，删了又不忍心
            Int32 id,
            String name,
            String email,
            Byte[] hashedPassword,	
            String sighWords, 
            String sex, 
            String msgGotRecordsXmlPath , 
            String msgSentRecordsXmlPath,  
            String question,        
            Byte[] hashedAnswer, 
            String friendsListXmlPath,
            String friendsListCache,
            String address, 
            String imgHeadUrl,
            String imgHeadPath, 
            Int32 points,        
            Int32 roles,
            DateTime regTime,
            DateTime lastLogTime,    
            Int32 logTimes, 
            String msgNotSentXmlPath ,
            String phone  )
        {
            _id = id;
            _name = name;
            _email = email;
            _hashedPassword = hashedPassword;
            _sighWords = sighWords;
            _sex = sex;
            _msgGotRecordsXmlPath = msgGotRecordsXmlPath;
            _msgSentRecordsXmlPath = msgSentRecordsXmlPath;
            _question = question;
            _hashedAnswer = hashedAnswer;
            _friendsListXmlPath = friendsListXmlPath;
            _friendsListCache = friendsListCache;
            _address = address;
            _imgHeadUrl = imgHeadUrl;
            _imgHeadPath = imgHeadPath;
            _points = points;
            _roles = roles;
            _regTime = regTime;
            _lastLogTime = lastLogTime;
            _logTimes = logTimes;
            _msgNotSentXmlPath = msgNotSentXmlPath;
            _phone = phone;
        }

        public Int32 ID
        {
            get { return _id; }
            set { _id = value; }
        }
        public String Name
        {
            get { return _name; }
            set { _name = value; }
        }
        public String Email
        {
            get { return _email; }
            set { _email = value; }
        }
        public Byte[] HashedPassword
        {
            get { return _hashedPassword; }
            set { _hashedPassword = value; }
        }
        public String SighWords
        {
            get { return _sighWords; }
            set { _sighWords = value; }
        }
        public String Sex
        {
            get { return _sex; }
            set { _sex = value; }
        }
        public String MsgGotRecordsXmlPath
        {
            get { return _msgGotRecordsXmlPath; }
            set { _msgGotRecordsXmlPath = value; }
        }
        public String MsgSentRecordsXmlPath
        {
            get { return _msgSentRecordsXmlPath; }
            set { _msgSentRecordsXmlPath = value; }
        }
        public String Question
        {
            get { return _question; }
            set { _question = value; }
        }
        public Byte[] HashedAnswer
        {
            get { return _hashedAnswer; }
            set { _hashedAnswer = value; }
        }
        public String FriendsListXmlPath
        {
            get { return _friendsListXmlPath; }
            set { _friendsListXmlPath = value; }
        }
        public String FriendsListCache
        {
            get { return _friendsListCache; }
            set { _friendsListCache = value; }
        }
        public String Address
        {
            get { return _address; }
            set { _address = value; }
        }
        public String ImgHeadUrl
        {
            get { return _imgHeadUrl; }
            set { _imgHeadUrl = value; }
        }
        public String ImgHeadPath
        {
            get { return _imgHeadPath; }
            set { _imgHeadPath = value; }
        }
        public Int32 Points
        {
            get { return _points; }
            set { _points = value; }
        }
        public Int32 Roles
        {
            get { return _roles; }
            set { _roles = value; }
        }
        public DateTime RegTime
        {
            get { return _regTime; }
            set { _regTime = value; }
        }
        public DateTime LastLogTime
        {
            get { return _lastLogTime; }
            set { _lastLogTime = value; }
        }
        public Int32 LogTimes
        {
            get { return _logTimes; }
            set { _logTimes = value; }
        }
        public String MsgNotSentXmlPath
        {
            get { return _msgNotSentXmlPath; }
            set { _msgNotSentXmlPath = value; }
        }
        public String MsgNotSentCache
        {
            get { return _msgNotSentCache; }
            set { _msgNotSentCache = value; }
        }
        public String Phone
        {
            get { return _phone; }
            set { _phone = value; }
        }
        public DateTime LeaveTime
        {
            get { return _leaveTime; }
            set { _leaveTime = value; }
        }
        public TimeSpan OnlineTime
        {
            get { return _onlineTime; }
            set { _onlineTime = value; }
        }
        public String SystemInfoXmlPath
        {
            get { return _systemInfoXmlPath; }
            set { _systemInfoXmlPath = value; }
        }


        private String _systemInfoXmlPath; //系统消息
        private Int32 _id;//用户ID		
        private String _name;//用户名		
        private String _email;//电子信箱	
        private String _phone; //电话号码
        private Byte[] _hashedPassword;//哈希后的用户密码		
        private String _sighWords; //个性签名
        private String _sex; //性别
        private String _msgGotRecordsXmlPath ; //接收信息记录文件地址
        private String _msgSentRecordsXmlPath;  // 发送信息记录文件地址
        private String _question;          //密码保护问题
        private Byte[] _hashedAnswer; //哈希后的密码保护问题答案
        private String _friendsListXmlPath;//好友列表文件地址
        private String _friendsListCache;//好友列表临时保存在服务器
        private String _address; //联系地址
        private String _imgHeadUrl;//头像url
        private String _imgHeadPath; //文件系统路径
        private Int32 _points;         //用户积分
        private Int32 _roles;           //角色集
        private DateTime  _regTime;     //注册时间
        private DateTime _lastLogTime;       //最近登录时间
        private DateTime _leaveTime; //离开时间
        private TimeSpan _onlineTime; //在线时间
        private Int32 _logTimes;    //登录次数
        private String _msgNotSentXmlPath;//用户没有接收的信息文件地址
        private String _msgNotSentCache; //用户未及时接收的信息缓冲

        
    }
}